import request from '../lib/request'

export async function save(data:any) {
    return await request.post("category/save", data)
}


export async function del(data:any) {
    return await request.delete("category/deleteById", {params:data})
}

export async function list() {
    return await request.get("category/list")
}


export async function page(data:any) {
    return await request.get("category/page",{params:data})
}


export async function update(data:any) {
    return await request.put("category/update",data)
}

